/*
 * @Author: lwHao
 * @Date: 2020-09-18 16:18:39
 * @LastEditors: lwHao
 * @LastEditTime: 2020-09-20 14:08:06
 */
import {request}  from '@/plugins/request'

// 用户登录
export const login = data => {
  return request({
    method: "POST",
    url: '/api/users/login',
    data
  })
}
// 用户注册
export const register = data => {
  return request({
    method: "POST",
    url: '/api/users',
    data
  })
}